/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.admin.mapper;

import com.fuyao.cloud.admin.api.dto.UserInfoParamsDTO;
import com.fuyao.cloud.admin.api.entity.SysUserinfo;
import com.fuyao.cloud.admin.api.vo.UserInfoDeptVO;
import com.fuyao.cloud.common.data.datascope.CloudBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 人员信息
 *
 * @author 碎月
 * @date 2021-12-16 10:32:13
 */
@Mapper
public interface SysUserinfoMapper extends CloudBaseMapper<SysUserinfo> {

    /**
     * 获取所有的人员编号
     * @return
     */
    List<String> findPersonNumAll();

    /**
     * 获取所有的身份证号
     * @return
     */
    List<String> findIdNumberAll();

    /**
     * 查询用户和部门信息集合。
     * @param userInfoParamsDTO 参数对象。
     * @return
     */
    List<UserInfoDeptVO> getUserDetailInfoList(@Param("params") UserInfoParamsDTO userInfoParamsDTO);

    /**
     * 修改用户信息
     * @param updateUserInfo 用户信息对象
     */
    boolean updateUserInfo(@Param("userInfo") SysUserinfo updateUserInfo);
}
